<template>
  <div id="app">
  <img src="./assets/logo.png">
    {{ totalPrice }}
    <apple></apple>
    <banana></banana>
  <!--<router-view/>
<router-link :to="'apple'">to apple</router-link>
  <router-link :to="{path:'banana',param:{color:'yellow'}}">to banana</router-link>
  <router-link :to="{path:'apple/red'}">to apple red</router-link>-->
</div>
</template>

<script>
  import Apple from './components/apple'
  import Banana from './components/banana'
export default {
    components:{Apple,Banana},
    computed:{
        totalPrice(){
            return this.$store.state.totalPrice
        }
    }
}
</script>

<style>
  #app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
